Filename | (eval 38)[/usr/share/perl5/JSON/PP.pm:67] |
Statements | Executed 3 statements in 8µs |
Eval Invoked At | /usr/share/perl5/JSON/PP.pm line 67 |
Sibling evals | 1, 2 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 7µs | 7µs | utf8 | JSON::PP::
0 | 0 | 0 | 0s | 0s | get_utf8 | JSON::PP::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | |||||
2 | # spent 7µs within JSON::PP::utf8 which was called:
# once (7µs+0s) by JSON::PP::encode_json at line 106 of JSON/PP.pm | ||||
3 | 1 | 1µs | my $enable = defined $_[1] ? $_[1] : 1; | ||
4 | |||||
5 | 1 | 2µs | if ($enable) { | ||
6 | $_[0]->{PROPS}->[P_UTF8] = 1; | ||||
7 | } | ||||
8 | else { | ||||
9 | $_[0]->{PROPS}->[P_UTF8] = 0; | ||||
10 | } | ||||
11 | |||||
12 | 1 | 4µs | $_[0]; | ||
13 | } | ||||
14 | |||||
15 | sub get_utf8 { | ||||
16 | $_[0]->{PROPS}->[P_UTF8] ? 1 : ''; | ||||
17 | } | ||||
18 | |||||
19 | ; |